/*
 * rdahead.c --- Compat version for read ahead.
 *
 * Copyright (C) 2010 Zajcev Evgeny <zevlg@yandex.ru>
 */
#include <sys/fcntl.h>

#ifdef F_RDAHEAD                        /* Darwin / FreeBSD */
void
rdahead(int fd) {
        fcntl(fd, F_RDAHEAD, 1);
}
#else  /* outsiders */
void rdahead() {}
#endif  /* F_RDAHEAD */
